/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Response } from '../models/Response';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class FileControllerService {
    /**
     * getFilesInFolder
     * @param folderName folderName
     * @returns Response OK
     * @throws ApiError
     */
    public static getFilesInFolderUsingGet(
        folderName: string,
    ): CancelablePromise<Response> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/file/getFilesInFolder/{folderName}',
            path: {
                'folderName': folderName,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * upload
     * @param file file
     * @returns Response OK
     * @returns any Created
     * @throws ApiError
     */
    public static uploadUsingPost(
        file: Blob,
    ): CancelablePromise<Response | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/file/upload',
            formData: {
                'file': file,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
}
